<?php if( count( $messages ) > 0 ) : ?>					
						<form action="/messages/delete" method="POST">
			<table id="contentTable" style="font-size: 12px;">
				<tr>
					<th style="width: 40px;border-bottom: 1px solid #eee;">Delete</th>
					<th style="width: 20%;border-bottom: 1px solid #eee;">Recipient</th> 
					<th style="padding: 0 10px; width: auto; text-align: left; border-bottom: 1px solid #eee;">Subject</th>
					<th style="width: 10%;border-bottom: 1px solid #eee;">Date</th>
				</tr>
<?php 	foreach($messages as $row) : ?>
				<tr>
					<td>
							<input name="msgids[]" type="checkbox" value="<?php View::show( $row['message_id'] ) ?>" />
					</td>
					<td style="<?php if( $row['read'] == 0 ) echo 'font-weight: bold;'; ?>"><dd><?php View::show( ucwords( strtolower( $row['lastname'] ) ))?>, <?php View::show(ucwords( strtolower( $row['firstname'])))?> <?php View::show(ucwords( strtolower( $row['middlename']{0})))?>.</dd></td>
					<td style="padding: 0 10px;" ><a href="/messages/show/<?php View::show($row['message_id'])?>/<?php echo $row['sender_id'] ?>"><?php View::show($row['subject'])?></a></td>
					<td><?php View::show( date('m/d/Y\<\b\r\ \/\> h:i:sa', strtotime($row['date']) + 60*60*8 ) ) ?></td>
				</tr>
<?php 	endforeach ; ?>
				<tr>
					<td colspan="4" id="button">
						<input name="referrer" type="hidden" value="sent" />
						<input type="submit" value="Delete" />
					</td>
				</tr>
			</table>
						</form>
<?php else: ?>					
	No messages.
<?php endif; ?>					
						